package com.ruoyi.system.api.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value="SysUserResp对象", description="登录用户出参")
public class SysUserResp extends BaseModel implements Serializable {
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "商铺ID")
    private Long deptId;

    @ApiModelProperty(value = "用户账号")
    private String userName;

    @ApiModelProperty(value = "用户邮箱")
    private String email;

    @ApiModelProperty(value = "手机号码")
    private String phonenumber;

    @ApiModelProperty(value = "用户性别:0=男,1=女,2=未知")
    private String sex;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "用户状态")
    private String status;

    @ApiModelProperty(value = "最后登录IP")
    private String loginIp;

    @ApiModelProperty(value = "最后登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date loginDate;

    @ApiModelProperty(value = "是否店长")
    private Boolean isManager;

    @ApiModelProperty(value = "身份ID")
    private Long postId;

    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    @ApiModelProperty(value = "微信openId")
    private String openId;

    @ApiModelProperty(value = "H5openId")
    private String hopenId;

    private String phone;
    private List<SysUserAddressResp> allAddress;
    private String token;
    private String password;
}
